<template>
  <div class="address-main">
    <div class="address-header">
      <span @click="goBack"><van-icon name="arrow-left" /></span>
      <div class="center">商品收藏</div>
    </div>
    <div class="collect-list">
      <div class="box">
        <img src="@/assets/image/81HqJDE2GoL._AC_UL1500_.jpg" alt="">
        <div class="right">
          <p class="title"> KwikSafety（北卡罗来纳州夏洛特 THUNDE... </p>
          <p class="money">$0</p>
          <p class="sale">销售量：150</p>
        </div>
      </div>
      <div class="box">
        <img src="@/assets/image/81HqJDE2GoL._AC_UL1500_.jpg" alt="">
        <div class="right">
          <p class="title"> KwikSafety（北卡罗来纳州夏洛特 THUNDE... </p>
          <p class="money">$0</p>
          <p class="sale">销售量：150</p>
        </div>
      </div>
      <div class="box">
        <img src="@/assets/image/81HqJDE2GoL._AC_UL1500_.jpg" alt="">
        <div class="right">
          <p class="title"> KwikSafety（北卡罗来纳州夏洛特 THUNDE... </p>
          <p class="money">$0</p>
          <p class="sale">销售量：150</p>
        </div>
      </div>
      <div class="box">
        <img src="@/assets/image/81HqJDE2GoL._AC_UL1500_.jpg" alt="">
        <div class="right">
          <p class="title"> KwikSafety（北卡罗来纳州夏洛特 THUNDE... </p>
          <p class="money">$0</p>
          <p class="sale">销售量：150</p>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      active:0
    }
  },
  methods:{
    goBack(){
      this.$router.go(-1)
    },
  }
}
</script>

<style scoped lang="scss">
.address-main {
  width: 100%;
  min-height: 100vh;
  background: #fff;

  .address-header {
    width: 100%;
    height: 45px;
    display: flex;
    background: #fff;
    justify-content: center;
    align-items: center;
    position: relative;

    span {
      position: absolute;
      left: 10px;
    }

    .center {
      width: 100%;
      height: 45px;
      text-align: center;
      line-height: 45px;
      font-size: 15px;
    }
  }
  .collect-list{
    width: 100%;
    padding: 3%;
    box-sizing: border-box;
    .box{
      width: 100%;
      height: 100px;
      border-radius: 5px;
      border: 1px solid #eee;
      padding: 3%;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      img{
        width: 60px;
        height: 60px;
      }
      .right{
        width: 100%;
        height: 80px;
        margin-left: 20px;
        .title{
          font-size: 14px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
        }
        .money{
          font-size: 14px;
          color: #002FFF;
          font-weight: 600;
          margin-top: 5px;
        }
        .sale{
          width: 100%;
          color: #aaa;
          font-size: 12px;
          margin-top: 5px;
        }
      }
    }
  }
}
</style>